package io;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

/*
* 将所有小写字母写入到fos.txt中
* */
public class Test {
    public static void main(String[] args) throws IOException {
        File file = new File("math.txt");
        FileOutputStream fos = new FileOutputStream(file);
        for (int i = 97; i < 123; i++) {
            fos.write(i);
        }
        System.out.println("写入完成");
        fos.close();
    }
}
